<?xml version='1.0' encoding='ISO-8859-2' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:t="http://myfaces.apache.org/tomahawk"
                template="./index.xhtml">
    
    <ui:define name="content">
             message = #{pboManagedBean.currFamily.lastName}<br/>
        <h:form enctype="multipart/form-data">
            <h:inputText value="#{pboManagedBean.newPaymentAmount}"></h:inputText>
            <h:inputText value="#{pboManagedBean.newPaymentEmail}"></h:inputText>
            <t:inputFileUpload value="#{pboManagedBean.uploadedFile}" />
            <h:commandLink value="dodaj" action="#{pboManagedBean.addPayment()}"></h:commandLink>
        </h:form>
        <hr/>
        #{pboManagedBean.payments}
    </ui:define>
</ui:composition>
